package com.movie.ticket.sale.moviecommon.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ticket
 * @since 2020-12-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@RedisHash("TMoviePerson")
public class TMoviePerson implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 电影演职人员关联表
     */
    @Id
    private Integer id;

    private Integer movieId;

    /**
     * 演职人员
     */
    private Integer personId;

    /**
     * 0：演员 1：导演
     */
    private Integer type;


}
